package org.liuyunfeng.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2021-12-23 19:20
 **/
@RestController
@RequestMapping("/memory")
public class MemoryController {
    private List<String> strings = new ArrayList<>(100000);

    @GetMapping
    public String add() {
        for (int i = 0; i < 50000; i++) {
            strings.add("你好啊");
        }
        return "success...";
    }
}

    